#if UNITY_EDITOR

using Unity.Entities;
using UnityEngine;
using UnityEngine.SceneManagement;

namespace POC.Helpers
{
    public partial class LoadConnectionSceneSystem : SystemBase
    {
        protected override void OnCreate()
        {
            Enabled = false;
            //如果已经通过网络存在场景中，就不做处理，否则加载连接场景
            if (SceneManager.GetActiveScene() == SceneManager.GetSceneByBuildIndex(0)) return;
            SceneManager.LoadScene(0);
        }

        protected override void OnUpdate()
        {
            
        }
    }
}

#endif